package com.py.pythink.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author jls
 * @date 2021/7/7 21:00
 */
@Data
@TableName("t_browse")
@NoArgsConstructor
public class Browse {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer fid;//房子的id
    private Integer uid;//用户的id
    private Date ctime;//浏览的时间
    private Integer flag;//删除的标记位

    public Browse(Integer fid, Integer uid, Date ctime, Integer flag) {
        this.fid = fid;
        this.uid = uid;
        this.ctime = ctime;
        this.flag = flag;
    }
}
